package demo2;

public class EmployeeTest {
    public static void main(String[] args) {
        Manager m1=new Manager(1,3000,"白经理",2000);
        Chef c2=new Chef(2,3000,"白厨师");
        System.out.println(m1.getId()+" "+m1.getMoney()+" "+m1.getName()+" "+m1.getBouns());
        System.out.println("-----经理行为----");
        m1.eat();
        m1.work();
        System.out.println(c2.getId()+" "+c2.getMoney()+" "+c2.getName());
        System.out.println("-----厨师行为----");
        c2.eat();
        c2.work();
    }
}
